addSettingsAction: function(title, desktopFile) {
let menuItem = this.addAction(title, function() {
- let app = Shell.AppSystem.get_default().lookup_setting(desktopFile);
+ let app = Shell.AppSystem.get_default().lookup_app(desktopFile);
if (!app) {
log('Settings panel for desktop file ' + desktopFile + ' could not be loaded!');
_onMyAccountActivate: function() {
Main.overview.hide();
- let app = Shell.AppSystem.get_default().lookup_setting('gnome-user-accounts-panel.desktop');
+ let app = Shell.AppSystem.get_default().lookup_app('gnome-user-accounts-panel.desktop');
app.activate();
},
return self->priv->apps_tree;
}
-/**
- * shell_app_system_lookup_setting:
- * @system:
- * @id: desktop file id
- *
- * Returns: (transfer none): Application in gnomecc.menu, or %NULL if none
- */
-ShellApp *
-shell_app_system_lookup_setting (ShellAppSystem *self,
- const char *id)
-{
- ShellApp *app;
-
- /* Actually defer to the main app set if there's overlap */
- app = shell_app_system_lookup_app (self, id);
- if (app != NULL)
- return app;
-
- return g_hash_table_lookup (self->priv->setting_id_to_app, id);
-}
-
/**
* shell_app_system_get_default:
*
GSList *shell_app_system_search_settings (ShellAppSystem *system,
GSList *terms);
-ShellApp *shell_app_system_lookup_setting (ShellAppSystem *system,
- const char *id);
-
-
#endif /* __SHELL_APP_SYSTEM_H__ */